﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/PageTemplate.Master" AutoEventWireup="True"
    Codebehind="Default.aspx.cs" Inherits="BingZi.HY.UI.Center.Manager.app_BusinessInfoUI.Default"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <BingZiControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
         HeadOPTxt="商业信息列表" HeadTitleTxt="商业信息">
        <BingZiControls:HeadMenuButtonItem ButtonPopedom="New" ButtonUrl="Manager.aspx?CMD=New"
            ButtonUrlType="Href" ButtonVisible="True" ButtonName="商业信息" />
    </BingZiControls:HeadMenuWebControls>
    <BingZiControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <BingZiControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="商业信息列表">
            <asp:GridView ID="GridView1" runat="server" OnSorting="GridView1_Sorting" OnRowCreated="GridView1_RowCreated" >
                <Columns>
                    <asp:TemplateField SortExpression="b_Id" HeaderText="序号"> 
                        <ItemTemplate>
                        <a href="Manager.aspx?IDX=<%#Eval("b_Id")%>&CMD=List"><%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%></a>
                        </ItemTemplate>
                        <ItemStyle Wrap="True" />  
                        <HeaderStyle Wrap="False" />    
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="信息标题" SortExpression="b_Title" DataField="b_Title" />
                    <asp:BoundField HeaderText="信息类型" SortExpression="b_InfoType" DataField="b_InfoType" />
                    <asp:BoundField HeaderText="标签" SortExpression="b_Tags" DataField="b_Tags" />
                    <asp:BoundField HeaderText="信息分类编号" SortExpression="b_Category" DataField="b_Category" />
                    <asp:BoundField HeaderText="信息分类名称" SortExpression="b_CategoryText" DataField="b_CategoryText" />
                    <asp:BoundField HeaderText="店铺分类" SortExpression="b_ShopCategory" DataField="b_ShopCategory" />
                    <asp:BoundField HeaderText="用户编号" SortExpression="b_UserID" DataField="b_UserID" />
                    <asp:BoundField HeaderText="用户名称" SortExpression="b_UserName" DataField="b_UserName" />
                    <asp:BoundField HeaderText="公司名称" SortExpression="b_CompanyName" DataField="b_CompanyName" />
                    <asp:BoundField HeaderText="地区编号" SortExpression="b_AreaIds" DataField="b_AreaIds" />
                    <asp:BoundField HeaderText="地区名称" SortExpression="b_AreaNames" DataField="b_AreaNames" />
                    <asp:BoundField HeaderText="属性" SortExpression="b_Attribute" DataField="b_Attribute" />
                    <asp:BoundField HeaderText="有效期" SortExpression="b_EffectTime" DataField="b_EffectTime" />
                    <asp:BoundField HeaderText="发布时间" SortExpression="b_StartTime" DataField="b_StartTime" />
                    <asp:BoundField HeaderText="更新时间" SortExpression="b_UpdateTime" DataField="b_UpdateTime" />
                    <asp:BoundField HeaderText="预算" SortExpression="b_Balance" DataField="b_Balance" />
                    <asp:BoundField HeaderText="图片" SortExpression="b_InfoPhoto" DataField="b_InfoPhoto" />
                    <asp:BoundField HeaderText="计量单位" SortExpression="b_Unit" DataField="b_Unit" />
                    <asp:BoundField HeaderText="单价" SortExpression="b_Price" DataField="b_Price" />
                    <asp:BoundField HeaderText="库存量" SortExpression="b_MaxUnit" DataField="b_MaxUnit" />
                    <asp:BoundField HeaderText="最小起订量" SortExpression="b_MinUnit" DataField="b_MinUnit" />
                    <asp:BoundField HeaderText="信息状态" SortExpression="b_State" DataField="b_State" />
                </Columns>
            </asp:GridView>
            <BingZiControls:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </BingZiControls:AspNetPager>
            <asp:Button ID="Button2" Visible="false" CssClass="button_bak" runat="server" Text="删除" OnClientClick="return deleteop();" OnClick="Button2_Click" />
        </BingZiControls:TabOptionItem>
        <BingZiControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="查询">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_body">
                        信息标题</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_Title_Input" title="请输入信息标题~100:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        信息类型</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_InfoType_Input" title="请输入信息类型~255:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        标签</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_Tags_Input" title="请输入标签~100:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        信息分类编号</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_Category_Input" title="请输入信息分类编号~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        信息分类名称</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_CategoryText_Input" title="请输入信息分类名称~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        店铺分类</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_ShopCategory_Input" title="请输入店铺分类~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        用户编号</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_UserID_Input" title="请输入用户编号~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        用户名称</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_UserName_Input" title="请输入用户名称~20:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        公司名称</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_CompanyName_Input" title="请输入公司名称~100:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        地区编号</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_AreaIds_Input" title="请输入地区编号~20:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        地区名称</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_AreaNames_Input" title="请输入地区名称~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        属性</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_Attribute_Input"  runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        有效期</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_EffectTime_Input" title="请输入有效期~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        发布时间</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_StartTime_Input" title="请输入发布时间~datetime" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        更新时间</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_UpdateTime_Input" title="请输入更新时间~datetime" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        预算</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_Balance_Input" title="请输入预算~float" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        信息内容</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_Content_Input" title="请输入信息内容~2147483647:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        图片</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_InfoPhoto_Input" title="请输入图片~200:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        计量单位</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_Unit_Input" title="请输入计量单位~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        单价</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_Price_Input" title="请输入单价~float" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        库存量</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_MaxUnit_Input" title="请输入库存量~10:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        最小起订量</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_MinUnit_Input" title="请输入最小起订量~10:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        信息状态</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="b_State_Input" title="请输入信息状态~255:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="查询" OnClick="Button1_Click" /></td>
                </tr>
            </table>
        </BingZiControls:TabOptionItem>
    </BingZiControls:TabOptionWebControls>

<script language="javascript" type="text/javascript">
<!--

function SelectAll()
{
   var e=document.getElementsByTagName("input");
   var IsTrue;
   if(document.getElementById("CheckboxAll").value=="0")
　 {
　　 IsTrue=true;
　　 document.getElementById("CheckboxAll").value="1"
　 }
　 else
　 {
　　IsTrue=false;
　　document.getElementById("CheckboxAll").value="0"
　　}
　　
　for(var i=0;i<e.length;i++)
　{
　　if (e[i].type=="checkbox")
　　{
　　   e[i].checked=IsTrue;
　　}
　}
}
function deleteop()
{
    var checkok = false;
    var e=document.getElementsByTagName("input");
    for(var i=0;i<e.length;i++)
　  {
　     if (e[i].type=="checkbox")
　　     {
　　         if (e[i].checked==true)
　　         {
　　             checkok = true;
　　             break;　　             
　　         }
　　     }  
　  }
　  if (checkok) 
        return confirm('删除后不可恢复,确认要批量删除选中记录吗？');
    else
    {
        
        alert("请选择要删除的记录!");
        return false;
    }
}
// -->
    </script>

</asp:Content>
